home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mintmant / prenice.txt < prev    next >
Text File  |  1992-03-24  |  1KB  |  64 lines

  1. Prenice(2)                Oct. 1, 1991                 Prenice(2)
  2.  
  3.  
  4.  
  5. NAME
  6.      Prenice - change process priority
  7.  
  8. SYNOPSIS
  9.      LONG Prenice( WORD pid, WORD delta );
  10.  
  11. DESCRIPTION
  12.      Prenice changes the base process niceness for process pid by
  13.      the  amount  delta.  Higher levels of niceness correspond to
  14.      decreased priority in scheduling,  so  positive  values  for
  15.      delta  cause  the corresponding process to be scheduled less
  16.      often. Conversely, negative values for delta cause the  pro-
  17.      cess priority to be increased.
  18.  
  19. RETURNS
  20.      The current priority for the process, if successful. This is
  21.      a  16 bit signed quantity. The default priority is 0; higher
  22.      priority processes have larger priority values, lower prior-
  23.      ity ones have smaller values.
  24.  
  25.      EFILNF if the indicated process does not  exist  (note  that
  26.      since  this  is  a  32  bit  negative  number it can be dis-
  27.      tinguished from the WORD negative numbers returned  for  low
  28.      priority processes)
  29.  
  30.      EACCDN if the process has a different user id
  31.  
  32. SEE ALSO
  33.      Pnice(2)
  34.  
  35. BUGS
  36.      The scheduling algorithm is pretty weird, so  it's  hard  to
  37.      predict exactly what effect process priorities have.
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Version 0.9   Last change: MiNT Programmer's Manual             1
  61.  
  62.  
  63.  
  64.